/**
 * Created by Yu Jin Xian on 2016/12/19.
 */
function addLoadEvent(fn) {
    var oldOnload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = fn;
    } else {
        window.onload = function () {
            oldOnload();
            fn();
        }
    }
}